<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="from" uri="http://www.springframework.org/tags/form" %>
<html>
    <head>
        <title>Title</title>
    </head>
    <body>

        <form:form modelAttribute="binderCommand" action="${pageContext.request.contextPath}/binder/submit">
            用户名：<form:input path="username"></form:input><br/>
            坐标：<form:input path="point.x"></form:input>
                 <form:input path="point.y"></form:input><br/>
            坐标：<form:input path="p"></form:input><form:errors path="p"></form:errors><br/>
            生日：<from:input path="birthday"></from:input><br/>
            地址：<form:input path="address"></form:input><br/>
            <form:button>提交</form:button>


            <hr/>

            <form:errors path="p"></form:errors>

            <hr/>

            <form:errors path="*"></form:errors>

            <hr/>

            <form:errors path="*" cssStyle="color: red;"></form:errors>

            <hr/>

            <c:forEach items="${errors}" var="error">
                <li>${error.value}</li>
            </c:forEach>
        </form:form>


    </body>
</html>
